import socket
from this import d

d = []
e = []
for line in open('tmp/tmp.txt'):
    d.append(int(line.split()[2]))
    e.append(int(line.split()[5]))

print(sum(d), sum(e))